<?

Page::getInstance()->addScript(URL_BASE_JAVASCRIPT . '/common.js');

switch (__ACTION__) {
    case "TABLE_ADD" :
    case 'TABLE_NEW':
    case 'TABLE_UPDATE':
    case "TABLE_EDIT" :
    case "TABLE_VIEW" :
    case "FIELD_NEW" :
    case "FIELD_ADD" :
    case "FIELD_DELETE" :
    case "FIELD_UPDATE" :

        include_once 'main.edit.controller.php';
        break;
    CASE "TABLE_DELETE":
    CASE "TABLE_EXPOSRTCVS":
    case 'LIST':
    default :
        include_once 'main.list.controller.php';
        break;
}

Response::getInstance()->setContent($content);
Response::getInstance()->send();
?>